import java.util.Arrays;

public class Day1012T8 {
    public static void main(String[] args) {
        int a[]={1,2,3,45,6,7,5,77,88,66,555,44,333,22,11,1111,2222,54,78,90};

        Arrays.sort(a);

        System.out.println(a[a.length-2]);
    }
}
